package com.lanhai.zhonglai.interfaces;
 
import com.lanhai.zhonglai.beans.AgvBean;
import com.lanhai.zhonglai.beans.StationBean;
import com.lanhai.zhonglai.enums.AgvReceiveEnum;
import com.lanhai.zhonglai.enums.TransDirectionEnum;  

public interface ICmdLog {
	
	/**
	 * 记录AGV发送数据
	 * @param agvid
	 * @param remark
	 * @param dataStr
	 */
	void addAgvSendLog(int agvid,String remark,String dataStr);
	
	/**
	 * 记录AGV接收数据
	 * @param agvid
	 * @param remark
	 * @param dataStr
	 */
	void addAgvReceiveLog(int agvid,String remark,String dataStr);
	
	/**
	 * 记录机台发送数据
	 * @param ip
	 * @param port
	 * @param line
	 * @param remark
	 * @param dataStr
	 * @param stationname
	 */
	void addStationSendLog(String ip,int port,int line,String remark,String dataStr ,String stationname);
	
	/**
	 * 记录机台接收数据
	 * @param ip
	 * @param line
	 * @param remark
	 * @param dataStr
	 * @param stationname
	 */
	void addStationReceiveLog(String ip,int line,String remark,String dataStr ,String stationname);
	
	
	 /**
	  * 保存传输日志
	 * @param obj
	 */
	void saveTransLog(int agvid,int dotno,StationBean station,TransDirectionEnum transType );
	
	void saveTransLogOnce(AgvBean agv, StationBean station,TransDirectionEnum transType,AgvReceiveEnum receiveType );
}
